﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CMS.Infos
{
    class MonthChartRow
    {
        /// <summary>
        /// 上课的日期
        /// </summary>
        [JsonProperty(PropertyName = "date")]
        public DateTime Date { get; set; }

        /// <summary>
        /// 上课的课程名
        /// </summary>
        [JsonProperty(PropertyName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// 指导老师
        /// </summary>
        [JsonProperty(PropertyName = "teacher")]
        public string Teacher { get; set; }

        /// <summary>
        /// 上课班级
        /// </summary>
        [JsonProperty(PropertyName = "class_name")]
        public string ClassName { get; set; }

        /// <summary>
        /// 参与学生数量,用于计算总学时
        /// </summary>
        [JsonProperty(PropertyName = "student_count")]
        public int StudentCount { get; set; }


        /// <summary>
        /// 上课的课室
        /// </summary>
        [JsonProperty(PropertyName = "room")]
        public string Room { get; set; }

        /// <summary>
        /// 课程上课时长
        /// </summary>
        [JsonIgnore]
        public int TimeSpan { get; set; }


    }
}
